package com.wframe.project.jnd.wx.controller;
import java.util.*;
import com.wframe.project.jnd.services.*;
import com.wframe.project.jnd.vo.ClsMapVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by Bill on 2017/4/12.
 */
@Controller
@RequestMapping("/we")
public class WechatIndexController {

    @Autowired
    CacheMasterDataService cacheMasterDataService;

    /**
     * 加载微信分类数据
     *
     * @param
     * @return
     */
    @RequestMapping(value = "WeLoadClsNav")
    public String loadClasNav(Model model) {
        List<ClsMapVo> clsMapVos = cacheMasterDataService.loadClsNav("1");
        model.addAttribute("list", clsMapVos);
        return "/wesite/view/product/category";
    }
}